package com.boot.mall.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.boot.common.to.order.OrderStatusTo;
import com.boot.mall.order.alipay.PayAsyncVo;
import com.boot.mall.order.alipay.PayVo;
import com.boot.mall.order.entity.OrderEntity;
import com.boot.mall.order.vo.OrderConfirmVo;
import com.boot.mall.order.vo.OrderListVo;
import com.boot.mall.order.vo.OrderSubmitVo;
import com.boot.mall.order.vo.SubmitOrderResponseVo;

import java.util.List;
import java.util.concurrent.ExecutionException;

/**
 * 订单
 *
 * @author huihui
 * @email 2565036109@qq.com
 * @date 2021-05-06 19:35:09
 */
public interface OrderService extends IService<OrderEntity> {

    OrderConfirmVo getConfirmOrder() throws ExecutionException, InterruptedException;

    SubmitOrderResponseVo createSubmitOrder(OrderSubmitVo vo) throws ExecutionException, InterruptedException;

    OrderStatusTo getOrderStatus(String orderSn);

    Boolean cancelOrder(String orderSn);

    PayVo aliPayForOrder(String orderSn);

    List<OrderListVo> listMemberOrderList();

    String handlerPayResult(PayAsyncVo vo);
}

